﻿using MockingBird.Common.Infrastructure.Logging;

namespace MockingBird.Simulator.Framework.Persistence
{


    /// <summary>
    /// Logs the request message to a file location.
    /// </summary>
    public class RequestMessageFileLogger : MessageFileLoggerBase, IRequestMessageLogger
    {
        #region "constructor(s)"
        public RequestMessageFileLogger(ILogger logger)
            : base(logger)
        {
            this.logger.LogInfo("RequestMessageFileLogger : Constructor");
        }

        #endregion

        #region IMessageLogger Members

        protected override void SetWorkingFolder()
        {
            this.BuildWorkingFolder("requests");
        }


        /// <summary>
        /// Sets the working file name for the request logger.
        /// </summary>
        protected override void SetWorkingFileName()
        {
            this.BuildWorkingFileName(string.Empty);
        }

        #endregion
    }
}
